require("./utils/ald-stat.js");

var s = require("./utils/vpush/_vpush.js");

App({
    vPush: s,
    onLaunch: function() {
        var s = wx.getStorageSync("logs") || [];
        s.unshift(Date.now()), wx.setStorageSync("logs", s);
    },
    getUserInfo: function(s) {
        var t = this;
        this.globalData.userInfo ? "function" == typeof s && s(this.globalData.userInfo) : wx.login({
            success: function() {
                wx.getUserInfo({
                    success: function(n) {
                        t.globalData.userInfo = n.userInfo, "function" == typeof s && s(t.globalData.userInfo);
                    }
                });
            }
        });
    },
    globalData: {
        userInfo: null,
        openid: "",
        isGetUserInfo: !1,
        isGetOpenid: !1
    }
});